package com.snowflake.ecatalog.contant;

import java.util.HashMap;
import java.util.Map;

public class ResourceInfoType {
	private final static Map<Integer, String> ALIAS = new HashMap<Integer, String>();
	/** 公司信息 **/
	public static final int LAUNCH = 1;
	/** 商品 **/
	public static final int GOODS = 2;

	/** 简介图 **/
	public static final int SEQUENCE_INTRO = 0;
	/** 缩略图 **/
	public static final int SEQUENCE_MINI = 1;
	/** 高清图 **/
	public static final int SEQUENCE_HDMI = 2;
	/** 视频 **/
	public static final int SEQUENCE_VIDEO = 100;
	/** 视频 2 **/
	public static final int SEQUENCE_VIDEO2 = 101;

	/** 简介图 **/
	public static final String ALIAS_INTRO = "_in";
	/** 缩略图 **/
	public static final String ALIAS_MINI = "";
	/** 高清图 **/
	public static final String ALIAS_HDMI = "_hd";

	/** 视频 **/
	public static final String ALIAS_VIDEO = "_v";
	/** 视频 2 **/
	public static final String ALIAS_VIDEO2 = "_v2";

	static {
		ALIAS.put(SEQUENCE_INTRO, ALIAS_INTRO);
		ALIAS.put(SEQUENCE_MINI, ALIAS_MINI);
		ALIAS.put(SEQUENCE_HDMI, ALIAS_HDMI);
		ALIAS.put(SEQUENCE_VIDEO, ALIAS_VIDEO);
		ALIAS.put(SEQUENCE_VIDEO2, ALIAS_VIDEO2);
	}

	/**
	 * 获取类型别名
	 * 
	 * @param sequence
	 * @return
	 */
	public static String alias(int sequence) {
		return ALIAS.get(sequence);
	}
}
